<%@ page language="java"  pageEncoding="UTF-8"%>
<jsp:include page="../../inc.jsp"></jsp:include>
<jsp:include page="../../uploadifyInc.jsp"></jsp:include>
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/jsp/weixin/imageTextMsg/list.js"></script>
<style type="text/css">
	#formWeixinMsg table {padding: 10px 0px;}
	#formWeixinMsg table tr td {padding: 5px 10px;}
	#formWeixinMsg table tr td input {width: 300px;}
	#formWeixinMsg table tr th {text-align: right;padding-right: 20px;}
	.imgMaterial {width: 50px;margin: 10px;margin-left: 10px;}
</style>

<div class="easyui-layout" data-options="fit:true,border:false">
	<div class="tableSearch datagrid-toolbar" data-options="region:'north',border:false" style="width:100%;height:60px;overflow: hidden;font-size: 12px;">
		<form id="selectForm">
			<table  style="width: 100%; font-size: 12px">
				<tr>
					<th>注册时间</th>
					<td>
						<input id="createDate1" name="createDate1" style="width: 100px;"/>至
						<input id="createDate2" name="createDate2" style="width: 100px;"/>
					</td>
					<th>邮箱</th><td><input class="input_border" name="email" id="selectEmail"/></td>
					<th>状态</th><td><input class="input_border" name="status" id="selectStatus"/></td>
					<th></th><td></td>
				</tr>
				<tr>
					<th>用户名</th><td><input class="input_border" name="username" id="selectUsername"/></td>
					<th>昵称</th><td><input class="input_border" name="nickname" id="selectNickname"/></td>
					<th>手机号</th><td><input class="input_border" name="phone" id="selectPhone"/></td>
					<td colspan="2" align="center"><a href="javascript:void(0)" class="easyui-linkbutton" onclick="search_datas()">查询</a>
						<a href="javascript:void(0)" class="easyui-linkbutton" onclick="reset_datas()">清空</a></td>
				</tr>
			</table>
		</form>
	</div>
	<div data-options="region:'center',border:false">
		<table id="_datasDatagrid"></table>	
	</div>
</div>

<!-- 右键菜单 -->
<div>
	<div id="datagridContextMenu" class="easyui-menu" style="width:200px">
		<div data-options="iconCls:'icon-add'" onclick="addRow()">增加</div>
		<div data-options="iconCls:'icon-remove'" onclick="deleteRow()">批量删除</div>
		<div data-options="iconCls:'icon-edit'" onclick="updateRow()">修改</div>
		<div data-options="iconCls:'icon-save'" onclick="saveRow()">保存</div>
		<div class="menu-sep"></div>
		<div data-options="iconCls:'icon-redo'" onclick="rejectRow()">撤销</div>
		<div data-options="iconCls:'icon-reload'" onclick="_datasDatagrid.datagrid('reload');">刷新</div>
	</div>
</div>

<!-- 添加或修改回复消息对话框dialog -->
<div id="dialogWeixinMsg" style="width:800px;height:500px;display:none; padding:10px;overflow-x:hidden;overflow-y:scroll">
	<form id="formWeixinMsg" method="post" style="width:100%; height:100%;">
		<input type="hidden" id="id" name="id"/>
		<input type="hidden" id="sessionID" value='${pageContext.session.id}'/>
		<input type="hidden" id="isMaterial" name="isMaterial"/>
		<table style="width: 100%;">
			<tr>
				<th>类型</th>
				<td><input id="status" name="status"/></td>
			</tr>
			<tr>
			    <th>标题</th>
				<td><input id="title" name="title"/></td>
			</tr>
			<tr class="noMaterial">
			    <th>描述</th>
				<td><input id="description" name="description"/></td>
			</tr>
			<tr class="noMaterial">
			    <th>上传图片</th>
				<td>
					<img id="logoPic" src="${pageContext.request.contextPath}/resources/css/images/logo_px.png" style="width:89px;margin-left:18px;"/>
					<input type="file" id="logo" name="file"/>
				</td>
			</tr>
			<tr class="noMaterial">
			    <th>图片链接</th>
				<td><input id="picUrl" name="picUrl"/></td>
			</tr>
			<tr class="noMaterial">
			    <th>图文链接</th>
				<td><input id="url" name="url"/></td>
			</tr>
			<tr class="yesMaterial">
			    <th>作者</th>
				<td><input id="author" name="author"/></td>
			</tr>
			<tr class="yesMaterial">
			    <th>摘要</th>
				<td><input id="digest" name="digest"/></td>
			</tr>
			<tr class="yesMaterial">
			    <th>内容</th>
				<td><input id="content" name="content"/></td>
			</tr>
			<tr class="yesMaterial">
			    <th>原文链接</th>
				<td><input id="content_source_url" name="content_source_url"/></td>
			</tr>
			<tr class="yesMaterial">
			    <th>封面素材</th>
				<td><input id="thumb_media_id" name="thumb_media_id"/></td>
			</tr>
			<tr class="yesMaterial">
			    <th>是否显示封面</th>
				<td><input id="show_cover_pic" name="show_cover_pic"/></td>
			</tr>
		</table>
	</form>
</div>

</body>  
</html>